<?php

namespace app\crontab\task;

/**
 * 定时任务基础类
 *
*/ 
class Common
{
    protected $params = [];

    public function __construct($params = [])
    {
        $this->params = array_merge( $this->params,$params);
    }

    public function getParam($name,$default = "")
    {
        if( isset($this->params[$name]) && !empty( $this->params[$name] ) )
    {
        return $this->params[$name];
    }
        return $default;
    }
}